import request from '@/utils/request'

export function listClazz(){
    return request({
        url: '/clazz/list',
        method: 'GET'
    })
}


export function updateClazz(data){
    return request({
        url: '/clazz/update',
        method: 'POST',
        data
    })
}


export function deleteClazz(id){
    return request({
        url: '/clazz/delete/' + id,
        method: 'POST'
    })
}


export function addClazz(data){
    return request({
        url: '/clazz/add/',
        method: 'POST',
        data
    })
}

export function getGrades(){
    return request({
        url: '/clazz/grades',
        method: 'GET'
    })
}

export function getClazzs(grade){
    return request({
        url: '/clazz/clazzs?grade=' + grade,
        method: 'GET',
    })
}
